/**********************************************************
 * Announcement.java
 * Created by ankur
 * Last modified Date: Sep 10, 2008 9:03:10 AM by ankur
 * Version : 0.1
 * Copyright (c) 2008 - 2008 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/

package com.printeverywhere.dto;

import java.util.Date;

/**
 * The Class Announcement.
 */

public class Announcement  implements java.io.Serializable {

    // Fields

     /** The id. */
    private Integer id;

     /** The subject. */
     private String subject;

     /** The date. */
     private Date date;

     /** The email. */
     private String email;

     /** The url. */
     private String url;

     /** The name. */
     private String name;

     /** The message. */
     private String message;

     private boolean active = false;

    // Constructors

    /**
     * Instantiates a new announcement.
     */
    public Announcement() {
    }

	/**
	 * Instantiates a new announcement.
	 *
	 * @param id the id
	 */
    public Announcement(Integer id) {
        this.id = id;
    }

    /**
     * Instantiates a new announcement.
     *
     * @param id the id
     * @param subject the subject
     * @param date the date
     * @param email the email
     * @param url the url
     * @param name the name
     * @param message the message
     */
    public Announcement(Integer id, String subject, Date date, String email, String url, String name, String message) {
        this.id = id;
        this.subject = subject;
        this.date = date;
        this.email = email;
        this.url = url;
        this.name = name;
        this.message = message;
    }

    // Property accessors

    /**
     * Gets the id.
     *
     * @return the id
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * Sets the id.
     *
     * @param id the new id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets the subject.
     *
     * @return the subject
     */
    public String getSubject() {
        return this.subject;
    }

    /**
     * Sets the subject.
     *
     * @param subject the new subject
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * Gets the date.
     *
     * @return the date
     */
    public Date getDate() {
        return this.date;
    }

    /**
     * Sets the date.
     *
     * @param date the new date
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * Gets the email.
     *
     * @return the email
     */
    public String getEmail() {
        return this.email;
    }

    /**
     * Sets the email.
     *
     * @param email the new email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Gets the url.
     *
     * @return the url
     */
    public String getUrl() {
        return this.url;
    }

    /**
     * Sets the url.
     *
     * @param url the new url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Gets the name.
     *
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * Sets the name.
     *
     * @param name the new name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the message.
     *
     * @return the message
     */
    public String getMessage() {
        return this.message;
    }

    /**
     * Sets the message.
     *
     * @param message the new message
     */
    public void setMessage(String message) {
        this.message = message;
    }

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
}